/*河南星辰软件科技有限公司
@copyright Copyright (c) 2010~2022 All rights reserved.
*/
package cn.javaxc.system.action.system;
import java.io.*;
import java.util.*;
import java.sql.*;
import cn.javaxc.model.base.SQL;
import cn.javaxc.model.base.SQLList;
import cn.javaxc.model.base.SQLMap;
import cn.javaxc.model.base.SQLParam;
import cn.javaxc.model.page.BatisPage;
import cn.javaxc.mvcwork.controller.web.TreeBean;
import cn.javaxc.mvcwork.util.common.CommonUtil;
import cn.javaxc.mvcwork.util.common.MapListUtil;
import cn.javaxc.mvcwork.util.helper.FrameHelper;
import cn.javaxc.mvcwork.util.helper.TreeTableHelper;
import org.springframework.beans.factory.annotation.Autowired;
import cn.javaxc.system.action.base.BaseAction;
import cn.javaxc.system.mapper.system.NetMenuMapper;
public class NetMenu extends BaseAction
{
    @Autowired(required=false)
	private NetMenuMapper mapper;
    /**
    模块菜单
    */
    
    public Map netMenu() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> s_link=mapper.s_link(params);
        result.put("s_link", s_link);
        
        return result;
    }
    /**
    菜单列表
    */
    
    public Map myAccount() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> ts_container=mapper.ts_container(params);
        ts_container.setSelectNone("系统列表明细");
        result.put("ts_container", ts_container);
        
        return result;
    }
    /**
    */
    
    public Object s_container() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> s_container_menu=mapper.s_container_menu(params);
        result.put("s_container_menu", s_container_menu);
        
        return s_container_menu;
    }
    /**
    配置类型
    */
    
    public Map netMenuConfigure() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        
        
        SQLList<SQLMap> s_showmark=mapper.s_showmark(params);
        s_showmark.setSelectNone("所有");
        result.put("s_showmark", s_showmark);
        
        
        SQLList<SQLMap> s_container_menu=mapper.s_container_menu(params);
        result.put("s_container_menu", s_container_menu);
        
        return result;
    }
    /**
    选择类型
    */
    
    public Map netMenuTypeChoice() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> s_showmark=mapper.s_showmark(params);
        result.put("s_showmark", s_showmark);
        
        return result;
    }
    /**
    */
    
    public Map onloadsubmit() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        mapper.onloadsubmit(params);
        
        return result;
    }
    /**
    配置页面修改
    */
    
    public Map configurationPageSubmit() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        mapper.configurationPageSubmit(params);
        
        
        for (SQLMap emt:hqlBean.getTableElements("")){
            params=new SQLParam(request,emt.getMap());
            mapper.b_container_page(params);
        }
        
        return result;
    }
    /**
    */
    
    public Map update() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        mapper.update(params);
        
        return result;
    }
    /**
    配置类型修改
    */
    
    public Map netMenuConfigureSubmit() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        for (SQLMap emt:hqlBean.getTableElements("ts_container_menu")){
            params=new SQLParam(request,emt.getMap());
            mapper.netMenuConfigureSubmit(params);
        }
        
        return result;
    }
}